package services

import (
	"context"
	context2 "kop/framework/context"
	itemC "kop/modules/item/client"
	"kop/pb"
)

type ItemService struct {
	context2.Context
}

//增加道具
func (s *ItemService) AddItem(ctx context.Context, req *pb.RawItem) (*pb.Item, error) {

	return itemC.AddItem(s.GetRoleID(ctx), req.ItemID, req.Number), nil
}

// 开礼包
func (s *ItemService) Package(ctx context.Context, req *pb.RawItem) (*pb.Award, error) {

	return itemC.ItemService.Package(ctx, req)
}

// 合成
func (*ItemService) Compose(ctx context.Context, req *pb.RawItem) (*pb.Award, error) {

	return itemC.ItemService.Compose(ctx, req)
}
